Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mvid and mdtoken to callstackframe #6839

Merged
merged 18 commits into from
Jun 19, 2024

Conversation

WilliamXieMSFT
Copy link
Contributor

@WilliamXieMSFT WilliamXieMSFT commented Jun 15, 2024

Summary

This PR adds moduleVersionId guid and methodDef token to callstack frames.

Example output from invoking /exceptions route:

{
    "id": 40,
    "timestamp": "2024-06-14T23:39:07.9509456Z",
    "typeName": "AppDiagnosticsNet6.Controllers.MyException",
    "moduleName": "AppDiagnosticsNet.dll",
    "message": "I have an inner exception.",
    "activity": {
      "id": "00-5e1784b5de0c77f7fb60abed6e43f3b9-ecd287b342b2dcec-00",
      "idFormat": "W3C"
    },
    "innerExceptions": [
      {
        "id": 39
      }
    ],
    "stack": {
      "threadId": 49328,
      "threadName": null,
      "frames": [
        {
          "methodName": "ThrowInnerException",
*         "methodToken": 100663635,
          "parameterTypes": [],
          "typeName": "AppDiagnosticsNet6.Controllers.ExceptionsController",
          "moduleName": "AppDiagnosticsNet.dll",
*         "moduleVersionId": "bf769014-c2e2-496a-93b7-76fbbcd04be5"
        },
Release Notes Entry

CallStackFrame JSON results now include methodtoken and moduleversionid.

@schmittjoseph
Copy link
Member

schmittjoseph commented Jun 17, 2024

Changes largely look good to me so far, the outstanding things I'm aware of are:

  • Documentation updates
  • Update the profiler's /stacks feature to emit these fields as well (this will probably fix the failing CI)
  • Test updates

@WilliamXieMSFT WilliamXieMSFT marked this pull request as ready for review June 17, 2024 20:34
@WilliamXieMSFT WilliamXieMSFT requested a review from a team as a code owner June 17, 2024 20:34
@schmittjoseph schmittjoseph added the update-release-notes Pull requests that should be mentioned in the release notes label Jun 18, 2024
wiktork
wiktork previously approved these changes Jun 19, 2024
@schmittjoseph schmittjoseph enabled auto-merge (squash) June 19, 2024 20:36
@schmittjoseph schmittjoseph merged commit 336aece into dotnet:main Jun 19, 2024
28 checks passed
@WilliamXieMSFT WilliamXieMSFT deleted the dev/willxie/mvid_mdt branch June 20, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants